# 给变量赋初始值
sum = 0
i = 1
# while条件判断语句
while i <= 1000:
    # if条件判断语句
    if i % 7 != 0:
        # 累加求和
        sum += i
    # 变量i累加
    i +=1
# 打印输入求和的值
print(sum)